package com.example.arguslogexample.utils;

/**
 * @author chenenwei
 */
public class ObjectUtil {

    public static boolean isEmpty(Object obj) {
        if (obj == null) {
            return true;
        }
        if (obj instanceof String) {
            return ((String) obj).trim().length() == 0;
        }
        return false;
    }
}
